package org.fpp.jdk21study;

/**
 * @author bigbird-0101
 * @date 2024-02-22 15:19
 */
public class SealedStudy {
    public sealed static class Person permits Women,Women2{

    }

    public static non-sealed class Women extends Person{

    }

    public static non-sealed class Women2 extends Person{

    }


    public sealed interface Animal permits YaZi,Gou{

    }
    public non-sealed static class YaZi implements Animal{

    }

    public non-sealed interface Gou extends Animal{

    }
}
